// 通过setTimeout实现 setInterval

var mySetInterval = function (func, time) {
  var excute = function (func, time) {
    setTimeout(() => {
      func()
      excute(func, time)
    }, time)
  }
  excute(func, time)
}

mySetInterval(() => {
  console.log(1)
}, 1000)


